package PenguinsFarm.Penguins
{
	import Interfaces.Penguin.MIPenguinObj;
	
	import XMFramework.Interface.IRTObject;
	
	import flash.utils.Dictionary;

	public class PenguinsEntity implements IRTObject, MIPenguinObj
	{
		private var renderer:PenguinsRenderer;
		private var model:PenguinsModel;

		public function PenguinsEntity()
		{
		}
		
		public function onFrameUpdate( deltaTime : Number, totalTime : Number ) : void
		{
			
		}
		
		public function get Renderer():PenguinsRenderer
		{
			return renderer;
		}
		
		public function set Renderer( value:PenguinsRenderer ):void
		{
			renderer = value;
		}
		
		public function get Model():PenguinsModel
		{
			return model;
		}
		
		public function set Model( value:PenguinsModel ):void
		{
			model = value;
		}
		
		public function onInit(configData:Dictionary, initData:Object):void
		{
			renderer.onInit( configData, initData );
			model.onInit( configData, initData );
		}
		
	}
}